package com.zlzlib.common.bean;

import lombok.Data;

import java.util.List;

/**
 * @DateTime: 2023/4/17 15:33
 * @Author zlz
 * @Version 1.0
 */
@Data
public class PageDataVo {

    /**
     * 总数量
     */
    private int total;

    /**
     * 列表数据
     */
    private List<?> dataList;

    public PageDataVo(int total, List<?> dataList) {
        this.total = total;
        this.dataList = dataList;
    }

    public PageDataVo(long total, List<?> dataList) {
        this.total = (int) total;
        this.dataList = dataList;
    }

    public PageDataVo() {
    }
}
